<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
    <h1>Página 2</h1> 
    <h2>Curso de JSF com PrimeFaces</h2> 
    
    
    <h3>Horizontal</h3>  
<p:carousel itemStyleClass="carItem" pageLinks="4" autoPlayInterval="4000"   
        numVisible="1" effect="easeInStrong" circular="true">  
    <p:graphicImage value="/images/1.jpg"/>  
    <p:graphicImage value="/images/2.jpg"/>  
    <p:graphicImage value="/images/3.jpg"/>  
    <p:graphicImage value="/images/4.jpg"/>  
</p:carousel>  
  
<h3>Vertical</h3>  
<p:carousel itemStyleClass="carItem" autoPlayInterval="4000"   
        numVisible="1" effect="easeInStrong" vertical="true" circular="true">  
    <p:graphicImage value="/images/1.jpg"/>  
    <p:graphicImage value="/images/2.jpg"/>  
    <p:graphicImage value="/images/3.jpg"/>  
    <p:graphicImage value="/images/4.jpg"/>  
</p:carousel>  
    
    
    <h:form>   
      <h:panelGrid columns="4" cellpadding="5">  
        <p:commandButton value="Página de Cadastro" action="pagina3"/>  
        <p:commandButton value="Página para Home" action="home"/>         
       </h:panelGrid> 
	</h:form>
</h:body>
</html>